From ab4b7e8e65a86fef5f352932f99bfe6415c1b06c Mon Sep 17 00:00:00 2001 From: "cl349@firebug.cl.cam.ac.uk" Date: Tue, 13 Sep 2005 21:52:24 +0000 Subject: [PATCH] Don't return failure when trying to delete a non-existent node. Signed-off-by: Christian Limpach --- tools/python/xen/lowlevel/xs/xs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/python/xen/lowlevel/xs/xs.c b/tools/python/xen/lowlevel/xs/xs.c index 78612befb0..cc3459e0b8 100644 --- a/tools/python/xen/lowlevel/xs/xs.c +++ b/tools/python/xen/lowlevel/xs/xs.c @@ -264,7 +264,7 @@ static PyObject *xspy_rm(PyObject *self, PyObject *args, PyObject *kwds) Py_BEGIN_ALLOW_THREADS xsval = xs_rm(xh, path); Py_END_ALLOW_THREADS - if (!xsval) { + if (!xsval && errno != ENOENT) { PyErr_SetFromErrno(PyExc_RuntimeError); goto exit; } -- 2.30.2